<template>
	<view>
		<view class="u-parse-con m-opacity-0" :class="{opacityTransfoem:content}">
			<u-parse :lazyLoad="true" :content="content" :tagStyle="{
						p:'line-height:1.6',
						span:'line-height:1.2',
						img: 'border-radius:18rpx'
					}"></u-parse>

		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				content: ``
			};
		},
		computed: {
		
		},
		methods: {

		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: e.name || '文章'
			})

			uni.$u.http.post('/article/articleDetail', {
				id: e.id,
			}).then(res => {
				this.content = res.data.content
			})
		}
	}
</script>

<style lang="scss" scoped>
	.description {
		padding: 32rpx;
		line-height: 1.3;
		font-size: 28rpx;
	}

	.sj-btn {
		position: fixed;
		bottom: 60rpx;
		left: 4%;
		background-color: #22C787;
		font-size: 32rpx;
		color: #FFFFFF;
		border-radius: 50rpx;
		text-align: center;
		width: 92%;
		height: 80rpx;
		line-height: 80rpx;
		margin: 0 auto;
	}
</style>